import indexConfig from '@/config/index.config'
import {
	request
} from '@/utils/newRequest'

export function listRequest(data, loading) {
	return request({
		loading: loading,
		url: indexConfig.baseUrl + '/appNoAuth/store/massageTechnician/list',
		method: 'get',
		data: data
	})
}

export function createRequest(data, loading) {
	return request({
		loading: loading,
		url: indexConfig.baseUrl + '/app/customer/customer/addMassageTechnician',
		method: 'post',
		data: data
	})
}

export function updateRequest(data, loading) {
	return request({
		loading: loading,
		url: indexConfig.baseUrl + '/app/customer/customer/updateMassageTechnician',
		method: 'post',
		data: data
	})
}

export function readRequest(id, loading) {
	return request({
		loading: loading,
		url: indexConfig.baseUrl + `/appNoAuth/store/massageTechnician/getInfo/${id}`,
		method: 'get'
	})
}
